#pragma once
#include "resource.h"
#include "afxwin.h"
#include "Ado.h"
//#include "XMLDialog.h"
#include "CdmZyFtp.h"
#include <vector>
#include "dmDBBase.h"

using namespace std;

class CManageDMF
{
public:
	CManageDMF();
	~CManageDMF(void);
private:
	CAdoConnection* m_pAdoConnection;
	CdmZyFtp				m_Ftp;
	CString strMineID;

public:
	BOOL m_bGenerateEntity;
	virtual bool GenerateOreFile(CString &strUnitID,CString &strModelType,CString &strSTime,CString &strETime,bool bUploadModel=true);
	virtual bool SetFTPDirectory(CString &strUnitID,CString &strModelFileTypeID,CString strDataValue,CString &strFTPPath);
	virtual void GetOreMineIDList(vector<string> &vecIDList); 
	virtual void GetEntityFromDatabase(dmDbDatabase *&pDB,long &lFileID,long &lFeatureID,
		long &lRecordID,long &lEnt_Handle,CString &strFeatureName);
	virtual bool GetPhaseType(vector<string> &vecIDList,vector<string> &vecNameList);
	virtual void ShowMineID(vector<string> &vecMineID);
	virtual CString GetModelTypeID(CString strTypeName);
	virtual bool LoadData(CString &strUnitID,CString &strModelType,CString &strSTime,CString &strETime);
};

